#define _CRT_SECURE_NO_WARNINGS
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef int TypeData;

typedef struct DulList {
	TypeData data;
	struct DulList* prev;
	struct DulList* next;
}Node;

void DulListPrint(Node* phead);
Node* DulListInit();
Node* BuyListNode(TypeData x);
Node* DulListDestroy(Node* phead);
void DulListPushBack(Node* phead, TypeData x);
void DulListPopBack(Node* phead);
void DulListPushFront(Node* phead, TypeData x);
void DulListPopFront(Node* phead);
Node* DulListFind(Node* phead, TypeData x);
void DulListInsert(Node* phead, TypeData x);
void DulListErase(Node* phead);